package com.xuecheng.manage_cms.dao;

import com.xuecheng.framework.domain.cms.CmsPage;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @Author Andrew Yang
 * @ClassName CmsPageRepository
 * @Description
 * @Package com.xuecheng.manage_cms.dao
 * @create 2019-12-25 17:18
 */
@Repository
public interface CmsPageRepository extends MongoRepository<CmsPage, String> {
    /**
     * @Method: findByPageNameAndSiteIdAndPageWebPath
     * @Author: Andrew Yang
     * @Date: 2019/12/26 22:39
     * @param pageName
     * @param siteId
     * @param pageWebPath
     * @Return com.xuecheng.framework.domain.cms.CmsPage
     * @Description: 添加根据页面名称、站点Id、页面webpath查询页面方法
     */
    public CmsPage findByPageNameAndSiteIdAndPageWebPath(String pageName, String siteId, String pageWebPath);
}
